import request from '@/utils/request'


const thesis = {
  list(params) {
    return request.get('/cgzh/thesis/list', {params});
  },
  myList(params) {
    return request.get('/cgzh/thesis/myList', {params});
  },
  add(data) {
    return request.post('/cgzh/thesis/add', data);
  },
  update(data) {
    return request.post('/cgzh/thesis/update', data);
  },
  get(id) {
    return request.get(`/cgzh/thesis/detail/${id}`);
  },
  delete(id) {
    return request.post(`/cgzh/thesis/delete/${id}`);
  },
  getAll(id) {
    return request.get(`/cgzh/thesis/allDetail/${id}`);
  },
  memberAddList(data) {
    return request.post(`/cgzh/thesisMember/addList`, data);
  },
  memberListGet(id){
    return request.get(`/cgzh/thesisMember/getByThesisId/${id}`);
  },
  projectAddList(data){
    return request.post(`/cgzh/thesisProject/addList`, data);
  },
  projectListGet(id){
    return request.get(`/cgzh/thesisProject/getByThesisId/${id}`);
  },
  submit(data){
    return request.post(`/cgzh/thesis/submit`, data);
  },
  getJoinList(params) {
    return request.get('/cgzh/thesis/getJoinList', {params});
  },
}

export default thesis;
